/*
* 岗位安排
* 警察安排
* */

(function () {
    // 岗位安排
    var emergencyDutySurveyList = [
        {positiondate: '2020-12-07', datetype: 1, substatus: 2,id:0},
        {positiondate: '2020-12-08', datetype: 1, substatus: 2,id:1},
        {positiondate: '2020-12-09', datetype: 1, substatus: 2,id:2},
        {positiondate: '2020-12-10', datetype: 1, substatus: 2,id:3},
        {positiondate: '2020-12-12', datetype: 1, substatus: 1,id:4},
        {positiondate: '2020-12-12', datetype: 2, substatus: 1,id:5},
        {positiondate: '2020-12-13', datetype: 2, substatus: 0,id:6},
        {positiondate: '2020-12-14', datetype: 1, substatus: 1,id:7},
        {positiondate: '2020-12-15', datetype: 1, substatus: 0,id:8},
        {positiondate: '2020-12-16', datetype: 1, substatus: 1,id:9},
        {positiondate: '2020-12-17', datetype: 1, substatus: 0,id:10},
        {positiondate: '2020-12-18', datetype: 1, substatus: 0,id:11}
    ];
// {id: 岗位id, type: 岗位类型, name: 岗位名称, cdepartmentname: 所属部门, position: 岗位范围, starttime: 岗位时段开始时间, endTime: 岗位时段结束时间}

    var emergencyDutyList = [{
        cdepartmentname: "同三高速大队",
        deptid:"370296000010", // 大队id
        middeptid:'370296000110', // 中队Id
        currenttime: "2020-12-12",
        endtime: "23:30",
        id: "7c946d2eb30b494ca87558e3af7a1dfe",
        middeptname: "一中队A班",
        deptName: "一中队A班",
        name: "巡防岗1",
        position: "沈海12-10",
        positiontype: "1",
        starttime: "09:00"
    }, {
        cdepartmentname: "同三高速大队",
        deptid:'370296000010', // 大队id
        middeptid:2, // 中队Id
        currenttime: "2020-12-26",
        endtime: "15:00",
        id: "797aed910cc24468807c7b3f509b07db",
        middeptname: "一中队A班",
        deptName: "一中队A班",
        name: "123",
        position: "沈海1-23",
        positiontype: "1",
        starttime: "12:11"
    }, {
        cdepartmentname: "同三高速大队",
        deptid:'370296000010', // 大队id
        middeptid:3, // 中队Id
        currenttime: "2020-12-25",
        endtime: "22:50",
        id: "e0b030dade4d4f42a847534d13ff73f8",
        middeptname: "一中队B班",
        deptName: "一中队B班",
        name: "123",
        position: "沈海1-10",
        positiontype: "1",
        starttime: "22:49"
    }, {
        cdepartmentname: "同三高速大队",
        deptid:'370296000010', // 大队id
        middeptid:4, // 中队Id
        currenttime: "2020-12-25",
        endtime: "13:08",
        id: "e20d2cb88c22408f8fb74fdb1a5dab74",
        middeptname: "一中队B班",
        deptName: "一中队B班",
        name: "1234",
        position: "沈海1",
        positiontype: "2",
        starttime: "10:08"
    }]
// "deptName": "青平高速大队",
//     "lstDeploy": null,
//     "name": "我的测试",
//     "startTime": "09:59",
//     "id": "53ed3d8c89aa429fbe716e6e305f5063",
//     "position": "龙青高速110k-120k",
//     "endTime": "19:00",
//     "type": null
    var policeDutyList = [
        {
            deptName: "青平高速大队",
            midDeptName: "青平高速大队",
            deploy: [
                {
                    id: "1",
                    positionId: "",
                    startTime: "2021-12-08 09:00",
                    endTime: "2021-12-08 17:00",
                    policeNames: "张航,李壮",
                    policeIds: "017131,017136",
                    policeCar: "鲁B234567"
                },{
                    id: "1",
                    positionId: "",
                    startTime: "2020-12-08 09:00",
                    endTime: "2020-12-08 17:00",
                    policeNames: "张航,李壮",
                    policeIds: "017131,017136",
                    policeCar: "鲁B234567"
                },{
                    id: "1",
                    positionId: "",
                    startTime: "2020-12-08 09:00",
                    endTime: "2020-12-08 17:00",
                    policeNames: "张航,李壮",
                    policeIds: "017131,017136",
                    policeCar: "鲁B234567"
                }],
            name: "我的测试",
            currentTime: "2021-12-08",
            startTime: "09:00",
            id: "53ed3d8c89aa429fbe716e6e305f5063",
            position: "龙青高速110k-120k",
            endTime: "17:00",
            type: 1
        }, {
            deptName: "青平高速大队",
            midDeptName: "青平高速大队",
            deploy: [ {
                id: "1",
                positionId: "",
                startTime: "2020-12-08 09:00",
                endTime: "2020-12-08 17:00",
                policeNames: "张航,李壮",
                policeIds: "017131,017136",
                policeCar: "鲁B234567"
            },{
                id: "1",
                positionId: "",
                startTime: "2020-12-08 09:00",
                endTime: "2020-12-08 17:00",
                policeNames: "张航,李壮",
                policeIds: "017131,017136",
                policeCar: "鲁B234567"
            },],
            name: "我的测试",
            currentTime: "2020-12-08",
            startTime: "09:03",
            id: "53ed3d8c89aa429fbe716e6e305f5063",
            position: "龙青高速110k-120k",
            endTime: "17:29",
            type: 2
        }
    ];


    var policList = [
        {policeid: "017131", policename: "管理员1", type: "1"},
        {policeid: "017132", policename: "管理员2", type: "1"},
        {policeid: "017133", policename: "管理员3", type: "1"},
        {policeid: "017134", policename: "管理员4", type: "1"},
        {policeid: "017135", policename: "管理员5", type: "0"},
        {policeid: "017136", policename: "管理员6", type: "0"},
        {policeid: "017137", policename: "管理员7", type: "0"},
        {policeid: "017138", policename: "管理员8", type: "0"},
    ]
    var policCarList = [
        {policecar: "鲁B234567", id: "0"},
        {policecar: "鲁B534635", id: "1"},
        {policecar: "鲁B864324", id: "2"},
        {policecar: "鲁B742424", id: "3"},
        {policecar: "鲁B967543", id: "4"},
        {policecar: "鲁B789064", id: "5"},
        {policecar: "鲁B123497", id: "6"},
    ];

    var emergencyDutyDetail = {
            startTime: "2020-12-16 0:00",
            id: "80a9a96e4cf740d39d3f7d8f62260b83",
            middeptId: "370295005110",
            name: "namegood,2",
            lstTake: [{
                mileage: "23",
                range: "120.3916,36.28128,120.38164,36.28987",
                positionId: "80a9a96e4cf740d39d3f7d8f62260b83",
                startStake: "1",
                endStake: "24",
                motorwayId: "02011"
            }],
            endTime: "2020-12-16 1:30",
            type: "2",
            deptId: "370295000010"
        };
    var deptGX = [  //警区
        {id:0,name:'0',color:1,range:'120.35646,36.09397,120.35646,36.09397,120.36229,36.0948,120.36298,36.09036,120.35818,36.08981,120.35441,36.09148,120.35646,36.09397'},
    ];

    if (!window.jmock) {
        window.jmock = {}
    }
    var objs = {
        emergencyDutySurveyList,
        emergencyDutyList,
        emergencyDutyDetail,
        policeDutyList,
        policList,
        policCarList,
        deptGX
    }
    Object.assign(window.jmock, objs)
    console.log(window.jmock)

})()
